package gaml.java.serializer.collection;

import gaml.error.GamlException;
import gaml.java.ClassSerializerStore;

import java.util.ArrayList;


/**
 * create yaml sequence node from ArrayList instance
 * get data from yaml sequence node into ArrayList instance
 * @author shnireck
 *
 */
public class ArrayListSerializer extends ListSerializer <ArrayList <Object>>{
	
	public ArrayListSerializer (ClassSerializerStore store) { super (store); }

	@Override
	public ArrayList <Object> createObject () throws GamlException { return new ArrayList <Object> ();	}

	@Override
	public Class <ArrayList <Object>> getObjectClass () { return (Class <ArrayList <Object>>) (new ArrayList <Object> ()).getClass (); }
}